<script>
  import { getContext, setContext } from "svelte";
  let key = getContext("key");
  setContext("childSetContext", { name: "Child1", key: "child1" });
</script>

<div>
  <h1>Child1</h1>
  <p>{key.name}</p>
  <p>{key.key}</p>
</div>
